package com.efast.dmom.mgmt.controller.master;


import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.master.TmBasDefectCode;
import com.efast.dmom.mgmt.service.master.TmBasDefectCodeService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 质量模块的错误代码定义 前端控制器
 * </p>
 *
 * @author Xu Cong
 * @since 2018-09-20
 */
@Controller
@RequestMapping("/tmBasDefectCode")
public class TmBasDefectCodeController {
	@Autowired
	private TmBasDefectCodeService tmBasDefectCodeService;
	
	/**
	 * crud【新增-保存】
	 */
	@RequestMapping(value="/save")
	public @ResponseBody
	ResultBean save(@RequestBody TmBasDefectCode tmBasDefectCode) {
		ResultBean result = new ResultBean(true,"'");
		tmBasDefectCodeService.save(tmBasDefectCode);
		return result;
	}
}

